package com.it.myobjectstream;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream;

public class ObjectStreamDemo2 {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        //反序列化流
        ObjectInputStream ois = new ObjectInputStream(new FileInputStream("D:\\java\\basic-code\\myio\\src\\c.txt"));
        Student o = (Student)ois.readObject();
        System.out.println(o);
        ois.close();
    }
}
